package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 我的订单对象 rental_sys_orders
 * 
 * @author Mag1c_-xyy
 * @date 2024-04-27
 */
public class YongRentalSysOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 车辆id */
    @Excel(name = "车辆id")
    private Long vehicleId;

    /** 车辆品牌和型号 */
    @Excel(name = "车辆品牌和型号")
    private String brandModel;

    /** 订单开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 租赁天数 */
    @Excel(name = "租赁天数")
    private Long contiTime;

    /** 总租金 */
    @Excel(name = "总租金")
    private BigDecimal totalCost;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String paymentStatus;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }
    public void setBrandModel(String brandModel) 
    {
        this.brandModel = brandModel;
    }

    public String getBrandModel() 
    {
        return brandModel;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setContiTime(Long contiTime) 
    {
        this.contiTime = contiTime;
    }

    public Long getContiTime() 
    {
        return contiTime;
    }
    public void setTotalCost(BigDecimal totalCost) 
    {
        this.totalCost = totalCost;
    }

    public BigDecimal getTotalCost() 
    {
        return totalCost;
    }
    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("vehicleId", getVehicleId())
            .append("brandModel", getBrandModel())
            .append("startTime", getStartTime())
            .append("contiTime", getContiTime())
            .append("totalCost", getTotalCost())
            .append("paymentStatus", getPaymentStatus())
            .append("orderStatus", getOrderStatus())
            .toString();
    }
}
